﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/Site.Master" AutoEventWireup="true"
	CodeBehind="Search.aspx.cs" Inherits="Hematology.UserSite.Search" %>

<%@ Import Namespace="Hematology.Tools" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphRecent" runat="server">
	<hmt:PageTitle runat="server" ID="ptTitle" Text='<%$ Resources:UserSite, resSearchResults %>' />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphHeadNews" runat="server">
	<div class="userFullPageContainer">
		<div class="userFullPageWrapper">
			<asp:Repeater runat="server" ID="rptSiteContent">
				<ItemTemplate>
					<div class="searchResultBlock">
						<div class="searchResultTitle">
							<asp:Literal runat="server" ID="hlTitle" Text='<%# GetExtendedSearchResultTitle(Eval("Title"), Eval("Content"), Eval("ContentType.TargetPage"), Eval("SiteContentId")) %>' />
							<asp:Image runat="server" ID="imgContentAttach" ImageUrl="img/file_attach_16.png"
								Visible='<%# Convert.ToInt32(Eval("FileAttachements.Count")) > 0 %>' ToolTip='<%# PageHelper.GetAttachIconToolTip(Eval("FileAttachements.Count")) %>' />
							<asp:Image runat="server" ID="imgChildDocument" ImageUrl="img/document_attach_16.png"
								Visible='<%# Convert.ToInt32(Eval("ChildSiteContent.Count")) > 0 %>' ToolTip='<%# PageHelper.GetInternalDocumentsIconToolTip(Eval("ChildSiteContent.Count")) %>' />
						</div>
						<div class="searchResultLink">
							<asp:HyperLink runat="server" ID="hlLink" Text='<%# String.Format(Eval("ContentType.TargetPage").ToString(), Request.Url.Host, Eval("SiteContentId")) %>'
								NavigateUrl='<%# String.Format(Eval("ContentType.TargetPage").ToString(), Request.Url.Host, Eval("SiteContentId")) %>' />
						</div>
						<div class="searchResultTeaser">
							<asp:Label runat="server" ID="lblTeaser" Text='<%# Eval("Teaser") %>' />
						</div>
					</div>
				</ItemTemplate>
			</asp:Repeater>
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphBody" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphPanel" runat="server">
</asp:Content>
